class Washer():
    '''def __init__(self):
        self.width = 5000
        self.heigth = 4000'''

    def __del__(self):
        print("对象已经删除")

    def __init__(self, width, height):
        self.width = width
        self.height = height

    def wash(self):
        print(f"长为{self.width}宽为{self.height}能洗衣服")

    def __str__(self):
        return "这个是洗衣机的说明书"



washer = Washer(10, 24)
washer.wash()
print(washer)

# washer = Washer()
#
# washer.width = 400
# washer.heigth = 500
#
# print(f"washer洗衣机的宽度是{washer.width}")
# print(f"washer洗衣机的高度是{washer.heigth}")
#
# washer.wash()